#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>

void sighander(int signum)
{
 printf("process accept a signnum :%d\n", signum);
}

int main()
{
  for(int i = 1; i <= 31; ++i)
  {
    signal(i,sighander);
  }

  int cnt = 10;
  while(cnt--)
  {
    printf("I am a process , pid:%d\n", getpid());
    sleep(1);
  }

  abort();

  return 0;
}
